<!-- 粉丝页面： ty -->

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="/chat/css/mall.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/chat/font_Icon/iconfont.css">
    <link rel="stylesheet" type="text/css" href="/chat/css/chat.css">
	<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>

<div class="chatContainer">
      
    <div  class="chatBox" ref="chatBox">
    
     <div id="child_header" style="width:100%;height:50px">
        <div class="goback"><a href="javascript:history.back(-1)"><i></i></a></div>
        <div class="current_location"><span>我的学员</span></div>
    </div>
		
        <div class="chatBox-info">
						
            <div class="chatBox-list" ref="chatBoxlist">
				
             
                <!-- 好友列表 -->
             
             
                        
               
            </div>
</div>



        </div>
    </div>
</div>
<input type="hidden" id="myid" >


<!-- 模态框（Modal） :  私信     -->
<div class="modal fade" id="sendmessage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					私聊
				</h4>
			</div>
			<div class="modal-body">
				<textarea rows="3" cols="50" id="content">
				</textarea>				
				<button id="fasong" onclick="publishMessage()">Send</button>
			</div>
			
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
	


  <script type="text/javascript">      	 
	
//加载粉丝列表
$(function () {

	 
	 $.ajax({
         url:"/chat/mystudent",
		  success: function (data) {		  
			  var context="";
	
			  for (var i = 0; i < data.length; i++) {				
				 var stu =  data[i];

				 context+= '<div class="chat-list-people">'
	               +'<div><img src="'+stu.user_headimg+'" alt="头像" /></a></div>'
	              +' <div class="chat-name">'
	              +'     <span>'+stu.user_name+'</span></div>'
	              +' <div class="message-num" style="background-color:white"><a href="/chat/someoneinfo?uid='+stu.user_id+'">详情</a></div>'

	              +'</div>'	
	                         
			}
 				$(".chatBox-list").html(context);
 						
		 	 }
		  });

})
  
 


    </script>
    




</body>
</html>
